/**
 * @file    drv_wdg.h
 * @brief 	看门狗驱动
 * @author  Liu wei
 * @version 1.0.1
 * @date    2023-04-18
 * 
 * @copyright Copyright (c) 2023 JBD-Energy Storage Technology Co. LTD
 * 
 * @par 修改日志:
 * <table>
 * <tr><th>Date       <th>Version   <th>Author   <th>Description
 * <tr><td>2023-04-17 <td>1.0.1     <td>Liuwe     <td>首次创建
 * </table>
 */

#ifndef __DRV_DWG_H_
#define __DRV_DWG_H_

/* File Includes -------------------------------------------------------------*/
#include <stdint.h>
/* Cplusplus -----------------------------------------------------------------*/
#ifdef __cplusplus
extern "C" {
#endif

/* Macro/Define/Typedef ------------------------------------------------------*/
/* @brief */
#define WDT_TIMEOUT_1638MS     (0)   /* 1.638S */
#define WDT_TIMEOUT_6553MS     (1)   /* 6.553S */

#define WDT_TIMEOUT_TIME       WDT_TIMEOUT_6553MS
/* Variables -----------------------------------------------------------------*/

/*******************************************************************************
 * public API List
 ******************************************************************************/
void drv_wdg_init(uint32_t cycle);
void drv_wdg_feed(void);

#ifdef __cplusplus
}
#endif

#endif  /* #ifndef __DRV_DWG_H_ */
/********** Copyright (c) 2023 JBD-Energy Storage Technology Co. LTD *********/
